package com.xja.service.impl;

import com.xja.entity.BookType;
import com.xja.mapper.BookTypeMapper;
import com.xja.service.BookTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
//调用里面的方法
@Service("bookTypeService")
public class BookTypeServiceImpI  implements BookTypeService {
    @Autowired
    private BookTypeMapper bookTypeMapper;//不用get和set方法

    public List<BookType> findBookTypes()throws Exception{
        return bookTypeMapper.selectAll();
    }
}
